package com.rwind.dynamic;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public class ApiRequestHandler {

    @ResponseBody
    public Object handler(HttpServletRequest request, HttpServletResponse response,
                          @PathVariable(required = false) Map<String, Object> pathVariables,
                          @RequestParam(required = false) Map<String, Object> requestParams,
                          @RequestBody(required = false) Map<String, Object> requestBodys) {
        // todo 业务操作
        return null;
    }
}